<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
<title>人脸识别</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <div id="queryDiv" class="queryDiv">
            <div class="grid-btn">
                <div class="form-group col-sm-2 keyword">
                    <input type="text" class="form-control" id="keyword" @keyup.enter="query"
                           placeholder="主键 / 备注">
                </div>
                <a class="btn btn-primary" @click="query">查询</a>

				#if($shiro.hasPermission("ar/arface:save"))
				<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
				#end
				<!--#if($shiro.hasPermission("ar/arface:update"))
				<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
				#end-->
				#if($shiro.hasPermission("ar/arface:delete"))
				<button class="btn btn-primary" id="delBtn" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</button>
				#end
			</div>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading" style="display: block">{{title}}</div>
		<form class="form-horizontal" id="addform" enctype="multipart/form-data">
			<div class="form-group">
			   	<div class="col-sm-2 control-label">人脸识别编码</div>
			   	<div class="col-sm-10">
			        <input type="text" name="facecode" class="form-control validate[required]" v-model="arFace.code" placeholder="人脸识别编码"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">识别组编码</div>
			   	<div class="col-sm-10">
			        <!--<input type="text" name="groupcode" class="form-control" v-model="arFace.groupCode" placeholder="识别组编码"/>-->

					<select id = "groupcode" name="groupcode"  type="text" class="form-control validate[required]" v-model="arFace.groupCode">
						<option v-for="option in grouplist" v-bind:value="option.code">
							{{ option.name }}
						</option>
					</select>


			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">人脸信息说明</div>
				<div class="col-sm-10">
					<input type="text" name="desc" class="form-control validate[required]" v-model="arFace.desc" placeholder="人脸信息说明"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">选择图片</div>
				<div class="col-sm-10">
					<input type="file" name="file" class="form-control validate[required]" v-model="arFace.imgUrl" placeholder="图片地址"/>
				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input id="saveBtn" type="button" class="btn btn-primary" @click="saveOrUpdate" data-loading-text="loading stuff..." value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/ar/arface/arface.js?_${date.systemTime}"></script>
</body>
</html>